package com.dao;

import com.model.User;
import org.springframework.cache.annotation.CachePut;

import javax.annotation.Resource;
import java.util.List;

@Resource
public interface userMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    @CachePut(value = "User",key = "1")
    User selectByPrimaryKey(Integer id);

    List<User> selectList();

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectOne(User user);
}